<?php

namespace app\user\traits\controllers;

use Carbon\Carbon;
use think\Cache;
use think\Session;
use think\Config;
use think\Request;
use app\common\Lang;

trait other
{

    public static function flash()
    {
        Session::flash('_old_input', Request::instance()->param());
    }
    public static function old($value = '')
    {
        if ($value) {
            return Session::get('_old_input.'.$value);
        }
        return Session::get('_old_input');
        
    }
}
